echo "HELLO SYNCING"

USER="root"
DOMAIN="10.8.3.69"
#spawn ssh $username@$ipaddr
#ssh $USER@$DOMAIN


SVN_LOCATION='/Users/alexandru/Desktop/SVNCAM4/LIVE_NEW'

REVISION=$(svn status $SVN_LOCATION)

#scoate primele 2 caracter
#echo $REVISION|cut -c3-

#facem array
declare -a FILES
FILES=($REVISION)
#echo ${FILES[0]}

for oneFile in ${FILES[@]}
do
  # -f la fisiere, -d la directoare
  if [ -f ${oneFile} ];
    then
       echo "${oneFile} $FILE exists"
       
    else
       echo "${oneFile} $FILE does not exists"
  fi
done


#/Users/alexandru/Desktop/SVNCAM4/LIVE_NEW/WEB-INF/jsp/profile/profilePageHeaderInfo.jsp
#echo $USER

#comanda de copiere: 
#scp root@10.8.3.69:/usr/local/apache-tomcat-6.0.35/webapps/ROOT/js/privateShow/viewerCode.js /Users/alexandru/Desktop/profile/copyFile.js